﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TodoApp.ResultModel;
using Volo.Abp.Application.Services;

namespace TodoApp.TMS_maintain.TMS_tyre
{
    public class TMS_TryAppService : ApplicationService
    {
        private readonly ITMS_tyres _ITMS_repairs;
        public TMS_TryAppService(ITMS_tyres ITMS_repairs)
        {
            _ITMS_repairs = ITMS_repairs;
        }

        public async Task<PageResponse<TMS_tyreDto>> GetTry(string TryNumber, string Trypin, string Trygui, string TryPeop, int pageindex = 1, int pagesize = 5)
        { 
            return await _ITMS_repairs.GetTry(TryNumber, Trypin, Trygui, TryPeop, pageindex, pagesize);
        }

        public async Task<int> TryAdds(TMS_tyreDto info)
        { 
            return await _ITMS_repairs.TryAdds(info);
        }

        public async Task<int> DeletTry(string Id)
        { 
            return await _ITMS_repairs.DeletTry(Id);
        }

        public async Task<int> UpdateTryup(TMS_tyreDto tMS_Induction)
        {
            return await _ITMS_repairs.UpdateTryup(tMS_Induction);
        }

    }
}
